---
sidebar_position: 3
title: Setting Response Type
sidebar_label: Response Type
---

# Response Type

Response type defines the data that will be returned to us from the server

---

### Example

```ts
type ResponseType = Array<{
  name: string;
  email: string;
  age: number;
}>;

const getUsers = client.createRequest<ResponseType>()({
  endpoint: "/users",
});
```
